home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 1598 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  41 lines

  1. Path: nordwest.pop.de!usenet
  2. From: Plate@Mail.HB.Provi.de (J÷rg Plate)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: More
  5. Date: 21 Jan 96 16:18:14 +0100
  6. Organization: POP NordWest, Ganspe, FRG
  7. Message-ID: <690.6594T978T710@Mail.HB.Provi.de>
  8. References: <9601201749.AA00046@cliffe.demon.co.uk>
  9. NNTP-Posting-Host: henschel.hb.provi.de
  10. BCC: Plate@Mail.HB.Provi.de
  11. X-Newsreader: THOR 2.22 (Amiga;TCP/IP) *UNREGISTERED*
  12.  
  13.  
  14. Moin, moin,
  15.  
  16. >    if(!(fh = fopen("T:xx", "w")))
  17. You cannot mix "BPTR"s and "FILE *"s... One is for dos.library calls
  18. and the other for stdio.
  19.  
  20. Use:
  21.     if(!(fh = Open ("T:xx", MODE_NEWFILE)))
  22.  
  23. >    Execute (textp,0,fh);
  24. But cannot use "fopen" & friends because "Execute" needs a BTPR...
  25.  
  26. dos:
  27.     Open(), Read(), Write() and Close();
  28.  
  29. stdio:
  30.     fopen(), fread(), fwrite() and fclose();
  31.  
  32.  
  33. J÷rg
  34.  
  35. -- 
  36. EMail: Plate@Mail.HB.Provi.de   CA  "I'm working on it" L.Holt  SZTB
  37. WWW: http://WWW.Informatik.Uni-Oldenburg.de/~kultur/     IRC: kultur
  38. "the message is that it's brains that matter, kids;"   Iain M. Banks
  39. "gonads are hardly worth making a distinction over"  Player of Games
  40.  
  41.